<?php $this->placeholder('display-commercial1')->set(1)?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_ad_detail.v-'.AC_VERSION.'.css'))?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_serp.v-'.AC_VERSION.'.css'))?>
<?php $this->placeholder('container-class')->set('profile personal')?>
<?php $this->headScript()->appendFile('http://v2.jiathis.com/code/jia.js')?>
<article class="article">
    <section class="main_section">
        <section class="user info box">
            <figure>
                <a href="#">
                    <img src="<?php echo $this->thumbnail()->scale($this->user->pp, 96, 96, true, true);?>" alt="<?php echo $this->user->name?>"> 
                </a>
            </figure>
            <h1>
                <em><?php echo $this->user->name?></em>
                <span class="tel"><?php echo $this->t('联系电话')?><a href="#"><?php echo $this->user->phone?></a></span>
            </h1>
            <ul>
                <li><a href="#"><span><?php echo $this->t('关注')?></span><?php echo (int)$this->user->count_following; /*(int)Model_Follow::getCountFollowers($this->listing->_id)*/?></a></li>
                <li><a href="#"><span><?php echo $this->t('粉丝')?></span><?php echo (int)$this->user->count_followers; /*(int)Model_Follow::getCountFollowing($this->listing->_id)*/?></a></li>
                <li><a href="#"><span><?php echo $this->t('被喜欢')?></span><?php echo (int)$this->user->count_likes /*(int)Model_Like::getCountPerUser($this->listing->us)*/?></a></li>
            </ul>
            <section class="func">
                <?php $is_follow = Model_Follow::isFollowing($this->user->_id);?>
                <a href="#" rel="<?php echo $this->geturl(($is_follow ? 'unfollow' : 'follow'),'follow', array('id' => (string)$this->user->_id))?>" class="follow to_follow <?php echo ($is_follow ? 'selected' : '')?>"><span>关注<em><?php echo Model_Follow::getCountFollowers($this->user->_id)?></em></span></a>
                <!-- JiaThis Button BEGIN -->
                <div id="jiathis_style_32x32">
                    <span class="jiathis_txt">分享到：</span>
                    <a class="jiathis_button_qzone" title="分享到QQ空间"><span class="jiathis_txt jtico jtico_qzone"></span></a>
                    <a class="jiathis_button_tsina" title="分享到新浪微博"><span class="jiathis_txt jtico jtico_tsina"></span></a>
                    <a class="jiathis_button_tqq" title="分享到腾讯微博"><span class="jiathis_txt jtico jtico_tqq"></span></a>
                    <a class="jiathis_button_renren" title="分享到人人网"><span class="jiathis_txt jtico jtico_renren"></span></a>
                    <a class="jiathis_button_kaixin001" title="分享到开心网"><span class="jiathis_txt jtico jtico_kaixin001"></span></a>
                    <a target="_blank" class="jiathis jiathis_txt jtico jtico_jiathis" href="http://www.jiathis.com/share"></a>
                </div>
                <!-- JiaThis Button END -->
            </section>
        </section>
<?php $this->partial()->setObjectKey('object');?>
<?php 
echo $this->Partial(
        'index/display-list-ad.phtml',
        'user',  
        array(
            'obj'            => $this->user,
            'no-facet'       => true,
            'list'           => $this->list, 
            'listing_number' => $this->listing_number, 
            'page'           => $this->page, 
            'per_page'       => $this->per_page, 
            'sort'           => $this->sort,
        )
    )
?>

    </section>
    <aside class="aside">
        <section class="history_saved">
            <script src="js/jquery.idTabs.min.js" type="text/javascript"></script>
            <p class="idTabs">
                <a class="selected" href="#idTab1">最近浏览</a>
                <a href="#idTab2">收藏的宝贝</a>    
            </p>
            <section style="display: block;" id="idTab1" class="history">
                <!-- history -->
            </section>
            <section style="display:none" id="idTab2" class="saved">
                <!-- saved ads -->
                <p><a href="#">观看所有</a></p>
            </section>
        </section>
        <section class="ad sky">
            <!--a href="#"><img src="images/ad_160_600.gif"></a--> 
        </section>
    </aside>
</article>
